﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Interview.ascx.cs" Inherits="ERP.Modules.Interview" %>
<ext:Hidden ID="FormatTypeInterview" runat="server" />
<ext:Panel runat="server" Layout="Fit" Border="False" ID="PanelInterview">
    <Content>
        <%--------------GridInterview-----------------%>
        <ext:GridPanel
            ID="grInterview"
            Cls="grid-double"
            runat="server"
            EnableColumnMove="true"
            Border="False">
            <Store>
                <%-------------StoreInterview-----------------%>
                <ext:Store
                    ID="StoreInterview"
                    runat="server"
                    OnReadData="StoreInterview_RefreshData"
                    PageSize="20">
                    <Model>
                        <ext:Model runat="server" IDProperty="Interview_ID">
                            <Fields>
                                <ext:ModelField Name="Applicants_No" Type="String" />
                                <ext:ModelField Name="Applicants_Name" Type="String" />
                                <ext:ModelField Name="Applicants_BirthDay" Type="Date" />
                                <ext:ModelField Name="Applicants_Gender" Type="String" />
                                <ext:ModelField Name="Main_Name" Type="String" />
                                <ext:ModelField Name="Job_Name" Type="String" />
                                <ext:ModelField Name="Interview_Result" Type="String" />
                                <ext:ModelField Name="Interview_Note" Type="String" />
                                <ext:ModelField Name="DateInterview" Type="Date" />
                            </Fields>
                        </ext:Model>
                    </Model>
                </ext:Store>
            </Store>
            <ColumnModel runat="server">
                <Columns>
                    <ext:RowNumbererColumn runat="server" Width="30" Align="Center" />
                    <ext:DateColumn runat="server" Text="Ngày phỏng vấn" Width="136" DataIndex="DateInterview" Format="dd-MM-yyyy" Align="Center"/>
                    <ext:Column runat="server" Text="Tên ứng viên" Width="100" DataIndex="Applicants_Name"/>
                    <ext:DateColumn runat="server" Text="Ngày sinh" Width="100" DataIndex="Applicants_BirthDay" Format="dd-MM-yyyy" Align="Center"/>
                    <ext:Column runat="server" Text="Giới tính" Width="200" DataIndex="Applicants_Gender"/>
                    <ext:Column runat="server" Text="Kế hoạch" Width="136" DataIndex="Main_Name" />
                    <ext:Column runat="server" Text="Vị trí ứng tuyển" Width="81" DataIndex="Job_Name"/>
                    <ext:Column runat="server" Text="Kết quả" Width="126" DataIndex="Interview_Result"/>
                    <ext:Column runat="server" Text="Hướng xử lý khác" Width="200" DataIndex="Interview_Note" Flex="1"/>
                </Columns>
            </ColumnModel>
            <DirectEvents>
                <ItemDblClick OnEvent="InterviewDblClick">
                    <ExtraParams>
                        <ext:Parameter Name="Interview_ID" Value="record.data.Interview_ID" Mode="Raw" />
                    </ExtraParams>
                    <EventMask ShowMask="true" Msg="Đang tải..." />
                </ItemDblClick>
            </DirectEvents>
            <SelectionModel>
                <ext:CheckboxSelectionModel runat="server" Mode="Multi">
                     <Listeners>
                       <SelectionChange Handler="
                            if (selected.length == 0) {
                                #{btnEdit}.disable();
                                #{btnDel}.disable();
                                #{btnExport}.disable();
                                #{btnReview}.disable();
                            } else {
                                #{btnEdit}.enable();
                                #{btnDel}.enable();
                                #{btnExport}.enable();
                                #{btnReview}.enable();
                            }" />
                   </Listeners>
                </ext:CheckboxSelectionModel>
            </SelectionModel>
            <DockedItems>
                <ext:Toolbar runat="server" Dock="Top">
                    <Items>
                        <ext:Button ID="btnAddNew" runat="server" Text="Thêm mới" Icon="ApplicationAdd">
                            <DirectEvents>
                                <Click OnEvent="btnAddNew_Click">
                                    <EventMask ShowMask="true" Msg="Đang tải..." />
                                </Click>
                            </DirectEvents>
                        </ext:Button>
                        <ext:ToolbarSeparator />
                        <ext:Button ID="btnEdit" runat="server" Text="Sửa" Icon="ApplicationEdit">
                            <DirectEvents>
                                <Click OnEvent="btnEdit_Click">
                                    <EventMask ShowMask="true" Msg="Đang tải..." />
                                </Click>
                            </DirectEvents>
                        </ext:Button>
                        <ext:ToolbarSeparator />
                        <ext:Button ID="btnDel" runat="server" Text="Xoá" Icon="ApplicationDelete">
                            <DirectEvents>
                                <Click OnEvent="btnDel_Click">
                                    <EventMask ShowMask="true" Msg="Đang tải..." />
                                    <ExtraParams>
                                        <ext:Parameter Name="name" Value="btnDel"></ext:Parameter>
                                    </ExtraParams>
                                    <Confirmation ConfirmRequest="true"
                                        Title="Thông Báo" Message="Bạn có muốn xoá mẫu tin này không ?">
                                    </Confirmation>
                                </Click>
                            </DirectEvents>
                        </ext:Button>
                        <ext:ToolbarSeparator />
                        <ext:Button ID="btnExport" runat="server" Text="Xuất tập tin" Icon="Printer">
                            <Menu>
                                <ext:Menu ID="MenuMain" runat="server">
                                    <Items>
                                        <ext:MenuItem ID="MenuItemExportXML" runat="server" Text="XML" Icon="PageCode">
                                            <Listeners>
                                                <Click Handler="submitValue(#{grInterview}, #{FormatTypeInterview}, 'xml');" />
                                            </Listeners>
                                        </ext:MenuItem>
                                    </Items>
                                </ext:Menu>
                            </Menu>
                        </ext:Button>
                        <ext:ToolbarSeparator />
                        <ext:Button ID="btnReview" runat="server" Text="Đánh giá xếp loại" Icon="Tick" ToolTip="Check vào một mẫu tin để đánh giá">
                            <DirectEvents>
                                <Click OnEvent="btnReview_Click">
                                    <EventMask ShowMask="true" Msg="Đang tải..." />
                                </Click>
                            </DirectEvents>
                        </ext:Button>
                    </Items>
                </ext:Toolbar>
                <ext:Toolbar runat="server" Dock="Bottom" AnchorHorizontal="100%">
                    <Items>
                        <ext:TriggerField ID="txtSearch" runat="server" Width="200" EnableKeyEvents="true" MarginSpec="0 8 0 0">
                            <Triggers>
                                <ext:FieldTrigger Icon="Search" />
                            </Triggers>
                            <DirectEvents>
                                <TriggerClick OnEvent="Search_Event"></TriggerClick>
                                <KeyPress OnEvent="Search_Event"></KeyPress>
                            </DirectEvents>
                        </ext:TriggerField>
                        <ext:PagingToolbar runat="server" StoreID="StoreInterview" BeforePageText="Trang" AfterPageText="của {0}" LastText="Cuối" NextText="Kế tiếp" PrevText="Trở lại" FirstText="Đầu" RefreshText="Làm tươi" DisplayInfo="true" DisplayMsg="Trang {0} - {1} của {2}" />
                    </Items>
                </ext:Toolbar>
            </DockedItems>
        </ext:GridPanel>
    </Content>
</ext:Panel>
<ext:Panel runat="server">
    <Content>
        <%-----------WindowsInterview-----------------%>
        <ext:Window ID="WindowsInterview" runat="server"
            Title="Phỏng vấn ứng viên"
            DefaultAnchor="100%"
            Width="866"
            Height="558"
            Hidden="true"
            AutoDataBind="True"
            Region="Center"
            Resizable="True"
            Modal="true"
            HideMode="Offsets"
            Border="false"
            Padding="5"
            DefaultButton="btnSavePopUp">
            <Items>
                <ext:Toolbar runat="server">
                    <Items>
                        <ext:Button runat="server" Text="Lưu lại" Icon="Disk" ID="btnSavePopUp">
                            <DirectEvents>
                                <Click OnEvent="btnSavePopUp_Click" Before="return #{FormPanelInterview}.isValid();">
                                    <EventMask ShowMask="true" Msg="Đang tải..." />
                                </Click>
                            </DirectEvents>
                        </ext:Button>
                        <ext:ToolbarSeparator />
                        <ext:Button runat="server" Text="Xoá câu hỏi" Icon="Cancel" ID="btnDelPlan" MarginSpec="0 8 0 0">
                            <DirectEvents>
                                <Click OnEvent="btnDelPlan_Click">
                                    <EventMask ShowMask="true" Msg="Đang tải..." />
                                    <ExtraParams>
                                        <ext:Parameter Name="name" Value="btnDelPlan"></ext:Parameter>
                                    </ExtraParams>
                                    <Confirmation ConfirmRequest="true"
                                        Title="Thông Báo" Message="Bạn có muốn xoá câu hỏi này không ?">
                                    </Confirmation>
                                </Click>
                            </DirectEvents>
                        </ext:Button>
                        <ext:ToolbarSeparator />
                        <ext:Button ID="btnCheck" runat="server" Text="Đánh giá xếp loại" Icon="Tick" ToolTip="Check vào một mẫu tin để đánh giá">
                            <DirectEvents>
                                <Click OnEvent="btnCheck_Click">
                                    <EventMask ShowMask="true" Msg="Đang tải..." />
                                </Click>
                            </DirectEvents>
                        </ext:Button>
                        <ext:ToolbarSeparator />
                        <ext:Button runat="server" Text="Huỷ bỏ" Icon="Decline" ID="btnCancelPopUp">
                            <DirectEvents>
                                <Click OnEvent="btnCancelPopUp_Click">
                                    <EventMask ShowMask="true" Msg="Đang tải..." />
                                </Click>
                            </DirectEvents>
                        </ext:Button>
                        <ext:TextField ID="lbID" runat="server" FieldLabel="ID" LabelAlign="Right" Hidden="true" />
                    </Items>
                </ext:Toolbar>
                <ext:FormPanel ID="FormPanelInterview" runat="server"
                    AutoHeight="true"
                    BodyPadding="10"
                    Frame="True"
                    DefaultAnchor="100%">
                    <Items>
                        <ext:TabPanel ID="TabPanelMain" runat="server" Layout="Fit">
                            <Items>
                                <ext:Panel 
                                    ID="TabInfo"
                                    runat="server" 
                                    Title="Thông tin cá nhân" 
                                    Height="411"
                                    Layout="FormLayout"
                                    Border="False"
                                    BodyPadding="6">
                                    <Items>
                                        <ext:FieldContainer
                                            runat="server"
                                            AnchorHorizontal="100%"
                                            Layout="HBoxLayout">
                                            <Items>
                                                <ext:TextField ID="txtApplicants_ID" runat="server" FieldLabel="Mã - Họ tên" AnchorHorizontal="100%" AllowBlank="false" Hidden="True" />
                                                <ext:TextField ID="txtInterview_No" runat="server" FieldLabel="Mã - Họ tên" AnchorHorizontal="100%" AllowBlank="false" ReadOnly="True" />
                                                <ext:TextField ID="txtInterview_Name" runat="server" Width="273" AllowBlank="false" MarginSpec="0 5 5 0" ReadOnly="True" />
                                                <ext:Button runat="server" Text="" Icon="BulletGet" ID="btnApplicants" ToolTip="Click vào để chọn ứng viên" Margins="0 20 0 0">
                                                    <DirectEvents>
                                                        <Click OnEvent="linkApplicants_Click">
                                                            <EventMask ShowMask="true" Msg="Đang tải..." />
                                                        </Click>
                                                    </DirectEvents>
                                                </ext:Button>
                                            </Items>
                                        </ext:FieldContainer>
                                        <ext:FieldContainer
                                            runat="server"
                                            AnchorHorizontal="100%"
                                            Layout="HBoxLayout">
                                            <Items>
                                                <ext:TextField ID="txtInterview_Identification" runat="server" FieldLabel="CMND" AnchorHorizontal="100%" AllowBlank="false" MarginSpec="0 20 5 0" ReadOnly="True" />
                                                <ext:TextField ID="txtInterview_PlaceOfIssue" runat="server" FieldLabel="Nơi cấp" AnchorHorizontal="100%" AllowBlank="false" ReadOnly="True" />
                                            </Items>
                                        </ext:FieldContainer>
                                        <ext:FieldContainer
                                            runat="server"
                                            AnchorHorizontal="100%"
                                            Layout="HBoxLayout">
                                            <Items>
                                                <ext:DateField ID="txtInterview_BirthDay" runat="server" FieldLabel="Ngày sinh" Width="252" AllowBlank="false" MarginSpec="0 20 5 0" ReadOnly="True" />
                                                <ext:RadioGroup ID="rdInterview_Gender" Width="200" runat="server" FieldLabel="Giới tính" ColumnsNumber="2" AutomaticGrouping="false">
                                                    <Items>
                                                        <ext:Radio ID="chkInterview_Gender_FeMale" runat="server" Name="ratingemp" InputValue="Nữ" BoxLabel="Nữ" />
                                                        <ext:Radio ID="chkInterview_Gender_Male" runat="server" Name="ratingemp" InputValue="Nam" BoxLabel="Nam" Checked="True" />
                                                    </Items>
                                                </ext:RadioGroup>
                                            </Items>
                                        </ext:FieldContainer>
                                        <ext:FieldContainer
                                            runat="server"
                                            AnchorHorizontal="100%"
                                            Layout="HBoxLayout">
                                            <Items>
                                                <ext:TextField ID="txtEthnic" runat="server" FieldLabel="Dân tộc" AnchorHorizontal="100%" AllowBlank="false" MarginSpec="0 20 5 0"  ReadOnly="True" />
                                                <ext:TextField ID="txtEthnic_ID" runat="server" FieldLabel="Dân tộc" AnchorHorizontal="100%" AllowBlank="false" Hidden="True" />
                                                <ext:TextField ID="txtReligion" runat="server" FieldLabel="Tôn giáo" AnchorHorizontal="100%" MarginSpec="0 5 5 0" AllowBlank="false" ReadOnly="True" />
                                                <ext:TextField ID="txtReligion_ID" runat="server" FieldLabel="Tôn giáo" AnchorHorizontal="100%" AllowBlank="false" Hidden="True" />
                                            </Items>
                                        </ext:FieldContainer>
                                        <ext:FieldContainer
                                            runat="server"
                                            AnchorHorizontal="100%"
                                            Layout="HBoxLayout">
                                            <Items>
                                                <ext:TextField ID="txtInterview_Address" runat="server" FieldLabel="Đ/C thường trú" AnchorHorizontal="100%" AllowBlank="false" Margins="0 20 0 0" ReadOnly="True" />
                                                <ext:TextField ID="txtDistricts" runat="server" FieldLabel="Tỉnh/Thành" AnchorHorizontal="100%" AllowBlank="false" Margins="0 20 0 0" ReadOnly="True" />
                                                <ext:TextField ID="txtDistricts_ID" runat="server" FieldLabel="Tỉnh/Thành" AnchorHorizontal="100%" AllowBlank="false" Hidden="True" />
                                                <ext:TextField ID="txtProvince" runat="server" FieldLabel="Quận/Huyện" AnchorHorizontal="100%" MarginSpec="0 5 5 0" AllowBlank="false" ReadOnly="True" />
                                                <ext:TextField ID="txtProvince_ID" runat="server" FieldLabel="Tôn giáo" AnchorHorizontal="100%" AllowBlank="false" Hidden="True" />
                                            </Items>
                                        </ext:FieldContainer>
                                        <ext:FieldContainer
                                            runat="server"
                                            AnchorHorizontal="100%"
                                            Layout="HBoxLayout">
                                            <Items>
                                                <ext:TextField ID="txtInterview_Address_Staying" runat="server" FieldLabel="Đ/C liên hệ" AnchorHorizontal="100%" AllowBlank="false" Margins="0 20 0 0" ReadOnly="True" />
                                                <ext:TextField ID="txtDistricts_Staying" runat="server" FieldLabel="Tỉnh/Thành" AnchorHorizontal="100%" AllowBlank="false" Margins="0 20 0 0"  ReadOnly="True" />
                                                <ext:TextField ID="txtDistricts_ID_Staying" runat="server" FieldLabel="Tỉnh/Thành" AnchorHorizontal="100%" AllowBlank="false" Hidden="True" />
                                                <ext:TextField ID="txtProvince_Staying" runat="server" FieldLabel="Quận/Huyện" AnchorHorizontal="100%" MarginSpec="0 5 5 0" AllowBlank="false" ReadOnly="True" />
                                                <ext:TextField ID="txtProvince_ID_Staying" runat="server" FieldLabel="Tôn giáo" AnchorHorizontal="100%" AllowBlank="false" Hidden="True" />
                                            </Items>
                                        </ext:FieldContainer>
                                        <ext:FieldContainer
                                            runat="server"
                                            AnchorHorizontal="100%"
                                            Layout="HBoxLayout">
                                            <Items>
                                                <ext:TextField ID="txtInterview_Email" runat="server" FieldLabel="Email" Width="525" AllowBlank="false" ReadOnly="True" />
                                            </Items>
                                        </ext:FieldContainer>
                                        <ext:FieldContainer
                                            runat="server"
                                            AnchorHorizontal="100%"
                                            Layout="HBoxLayout">
                                            <Items>
                                                <ext:TextField ID="txtInterview_Phone" runat="server" FieldLabel="Điện thoại" AnchorHorizontal="100%" AllowBlank="false" MarginSpec="0 20 5 0" ReadOnly="True" />
                                                <ext:TextField ID="txtInterview_Mobie" runat="server" FieldLabel="Di động" AnchorHorizontal="100%" AllowBlank="false" ReadOnly="True" />
                                            </Items>
                                        </ext:FieldContainer>
                                    </Items>
                                </ext:Panel>
                                <ext:Panel 
                                    ID="TabSkill"
                                    runat="server" 
                                    Title="Kinh nghiệm - trình độ học vấn" 
                                    Height="411"
                                    Layout="FormLayout"
                                    Border="False"
                                    BodyPadding="6">
                                    <Items>
                                        <ext:FieldContainer
                                            runat="server"
                                            AnchorHorizontal="100%"
                                            Layout="HBoxLayout">
                                            <Items>
                                                <ext:TextField ID="txtEducational_Level" runat="server" FieldLabel="Trình độ VH" LabelWidth="150" Width="308" AllowBlank="false" MarginSpec="0 5 5 0"  ReadOnly="True" />
                                                <ext:TextField ID="txtEducational_Level_ID" runat="server" FieldLabel="Trình độ VH" AnchorHorizontal="100%" AllowBlank="false" Hidden="True" />
                                                <ext:TextField ID="txtSector" runat="server" FieldLabel="Ngành học" Width="308" MarginSpec="0 5 5 0" AllowBlank="false" ReadOnly="True" />
                                                <ext:TextField ID="txtSector_ID" runat="server" FieldLabel="Ngành học" AnchorHorizontal="100%" AllowBlank="false" Hidden="True" />
                                            </Items>
                                        </ext:FieldContainer>
                                        <ext:TextField ID="txtInterview_Language_Level" runat="server" FieldLabel="Ngoại ngữ" Width="690" LabelWidth="150" AllowBlank="false" MarginSpec="0 20 5 0" ReadOnly="True" />
                                        <ext:TextField ID="txtInterview_Informatics" runat="server" FieldLabel="Tin học" Width="690" LabelWidth="150" AllowBlank="false" ReadOnly="True" />
                                        <ext:NumberField ID="txtInterview_YearsOfExperience" runat="server" FieldLabel="Số năm kinh nghiệm" LabelWidth="150" Width="336" AllowBlank="false" MarginSpec="0 20 5 0" ReadOnly="True" />
                                        <ext:NumberField ID="txtInterview_Wage_Current" runat="server" FieldLabel="Mức lương hiện tại" LabelWidth="150" Width="336" AllowBlank="false" MarginSpec="0 20 5 0" MinValue="0" ReadOnly="True" />
                                        <ext:NumberField ID="txtInterview_Wage_Order" runat="server" FieldLabel="Mức lương mong muốn" LabelWidth="150" Width="336" AllowBlank="false" MinValue="0" ReadOnly="True" />
                                    </Items>
                                </ext:Panel>
                                <ext:Panel 
                                    ID="TabInfoOrder"
                                    runat="server" 
                                    Title="Thông tin khác" 
                                    Height="411"
                                    Border="False"
                                    BodyPadding="6">
                                    <Items>
                                        <ext:TextArea ID="txtInterview_Skills" runat="server" FieldLabel="Kỹ năng" Width="690" Height="50" LabelWidth="150" AllowBlank="false" MarginSpec="0 20 5 0" ReadOnly="True"  />
                                        <ext:TextArea ID="txtInterview_Experience" runat="server" FieldLabel="Kinh nghiệm" Width="690" Height="50" LabelWidth="150" AllowBlank="false" MarginSpec="0 20 5 0"  ReadOnly="True"/>
                                        <ext:TextArea ID="txtInterview_Objectives" runat="server" FieldLabel="Mục tiêu nghề nghiệp" Width="690" Height="50" LabelWidth="150" AllowBlank="false" MarginSpec="0 20 5 0"  ReadOnly="True"/>
                                        <ext:TextArea ID="txtInterview_Introduce" runat="server" FieldLabel="Người giới thiệu" Width="690" Height="50" LabelWidth="150" AllowBlank="false" MarginSpec="0 20 5 0" ReadOnly="True"/>
                                        <ext:TextArea ID="txtInterview_Notes" runat="server" FieldLabel="Ghi chú" Width="690" Height="50" LabelWidth="150" MarginSpec="0 20 5 0"  ReadOnly="True"/>
                                    </Items>
                                </ext:Panel>
                                <ext:Panel 
                                    ID="TabInterview"
                                    runat="server" 
                                    Title="Trả lời phỏng vấn" 
                                    Height="450"
                                    Border="False"
                                    BodyPadding="6">
                                    <Items>
                                        <ext:Panel
                                            runat="server" 
                                            Width="811"
                                            Layout="Fit" 
                                            Border="False"
                                            AutoScroll="True"
                                            Height="246">
                                            <Items>
                                               <ext:GridPanel
                                                    ID="grInterview_Detail"
                                                    Cls="grid-double"
                                                    runat="server"
                                                    EnableColumnMove="true"
                                                    AutoWidth="true"
                                                    AutoScroll="true"
                                                    Layout="Fit"
                                                    Height="180">
                                                    <Store>
                                                        <ext:Store
                                                            ID="StoreInterview_Detail"
                                                            runat="server"
                                                            OnReadData="StoreInterview_Detail_RefreshData">
                                                            <Model>
                                                                <ext:Model runat="server" IDProperty="Interview_Detail">
                                                                    <Fields>
                                                                        <ext:ModelField Name="Interview_ID" Type="Int" />
                                                                        <ext:ModelField Name="Interview_Questions" Type="String" />
                                                                        <ext:ModelField Name="Interview_Answer" Type="String" />
                                                                        <ext:ModelField Name="Interview_Poit" Type="Float" />
                                                                        <ext:ModelField Name="Users_Id" Type="Int" />
                                                                        <ext:ModelField Name="Flag" Type="Int" />
                                                                    </Fields>
                                                                </ext:Model>
                                                            </Model>
                                                        </ext:Store>
                                                    </Store>
                                                    <ColumnModel runat="server">
                                                        <Columns>
                                                            <ext:RowNumbererColumn Text="STT" runat="server" Width="30" Align="Center" />
                                                            <ext:Column runat="server" Text="Nội dung câu hỏi" Width="349" DataIndex="Interview_Questions" />
                                                            <ext:Column runat="server" Text="Nội dung trả lời" Width="273" DataIndex="Interview_Answer" />
                                                            <ext:Column runat="server" Text="Thang điểm" Width="90" DataIndex="Interview_Poit" Flex="1" Align="Center" />
                                                        </Columns>
                                                    </ColumnModel>
                                                    <SelectionModel>
                                                        <ext:CheckboxSelectionModel runat="server" Mode="Multi"/>
                                                    </SelectionModel>
                                                    <DirectEvents>
                                                        <ItemDblClick OnEvent="grInterview_Detail_DblClick">
                                                            <ExtraParams>
                                                                <ext:Parameter Name="Interview_Detail" Value="record.data.Interview_Detail" Mode="Raw" />
                                                            </ExtraParams>
                                                            <EventMask ShowMask="true" Msg="Đang tải..." />
                                                        </ItemDblClick>
                                                    </DirectEvents>
                                                    <DockedItems>
                                                        <ext:Toolbar runat="server" Dock="Bottom" AnchorHorizontal="100%">
                                                            <Items>
                                                                <ext:PagingToolbar runat="server" StoreID="StoreInterview_Detail" EmptyMsg="Không có dữ liệu" BeforePageText="Trang" AfterPageText="của {0}" LastText="Cuối" NextText="Kế tiếp" PrevText="Trở lại" FirstText="Đầu" RefreshText="Làm tươi" DisplayInfo="true" DisplayMsg="Trang {0} - {1} của {2}" />
                                                            </Items>
                                                        </ext:Toolbar>
                                                    </DockedItems>
                                                </ext:GridPanel>
                                            </Items>
                                        </ext:Panel>
                                        <ext:Panel
                                            runat="server" 
                                            Width="811"
                                            MarginSpec="5 0 0 0"
                                            Border="False"
                                            Frame="False"
                                            Height="190">
                                            <Items>
                                                <ext:FormPanel ID="FormPanelDetail" runat="server"
                                                    AutoHeight="true"
                                                    BodyPadding="4"
                                                    Frame="true"
                                                    DefaultAnchor="100%">
                                                    <Items>
                                                        <ext:NumberField runat="server" AllowBlank="False" ID="txtPoint" FieldLabel="Nhập vào thang điểm" LabelWidth="150" Width="200"/>
                                                        <ext:Label runat="server" LabelWidth="83" LabelAlign="Top" Text="Nội dung câu hỏi" />
                                                        <ext:HtmlEditor ID="txtInterview_Questions" runat="server" AllowBlank="False" AnchorHorizontal="100%" Height="80" MarginSpec="8 3 5 0"/>
                                                        <ext:Button runat="server" ID="btnAddQuestions" Text="Cập nhật câu hỏi" Icon="DiskEdit">
                                                            <DirectEvents>
                                                                <Click OnEvent="btnAddQuestions_Click" Before="return #{FormPanelDetail}.isValid();">
                                                                    <EventMask ShowMask="true" Msg="Đang tải..." />
                                                                </Click>
                                                            </DirectEvents>
                                                        </ext:Button>
                                                    </Items>
                                                </ext:FormPanel>
                                            </Items>
                                        </ext:Panel>
                                    </Items>
                                </ext:Panel>
                                <ext:Panel 
                                    ID="TabsResult"
                                    runat="server" 
                                    Title="Đánh giá chung" 
                                    Height="411"
                                    Border="False"
                                    BodyPadding="6">
                                    <Items>
                                        <ext:FormPanel ID="FormPanelResult" runat="server"
                                            AutoHeight="true"
                                            BodyPadding="4"
                                            Frame="true"
                                            DefaultAnchor="100%">
                                            <Items>
                                                <ext:FieldSet
                                                    runat="server" 
                                                    Flex="1" 
                                                    Title="Đánh giá chung" 
                                                    Layout="AnchorLayout"
                                                    DefaultAnchor="100%">
                                                    <Items>
                                                        <ext:RadioGroup ID="rdResult" Width="200" runat="server" ColumnsNumber="1">
                                                            <Items>
                                                                <ext:Radio ID="rdOk" runat="server" Name="ratingemp" InputValue="Đạt yêu cầu" BoxLabel="Đạt yêu cầu" />
                                                                <ext:Radio ID="rdNot" runat="server" Name="ratingemp" InputValue="Không đạt yêu cầu" BoxLabel="Không đạt yêu cầu" Checked="True" />
                                                                <ext:Radio ID="rdLater" runat="server" Name="ratingemp" InputValue="Phỏng vấn lần sau" BoxLabel="Phỏng vấn lần sau"/>
                                                            </Items>
                                                        </ext:RadioGroup>
                                                    </Items>
                                                </ext:FieldSet>
                                                <ext:FieldSet
                                                    runat="server" 
                                                    Flex="1" 
                                                    Title="Hướng xử lý tiếp theo" 
                                                    Layout="AnchorLayout"
                                                    DefaultAnchor="100%">
                                                    <Items>
                                                        <ext:HtmlEditor ID="txtInterview_Note" runat="server" AllowBlank="False" AnchorHorizontal="100%" Height="260" MarginSpec="8 3 5 0"/>
                                                    </Items>
                                                </ext:FieldSet>
                                            </Items>
                                        </ext:FormPanel>
                                    </Items>
                                </ext:Panel>
                            </Items>
                        </ext:TabPanel>
                    </Items>
                </ext:FormPanel>
            </Items>
        </ext:Window>
        <%--------------Applicants-----------------%>
        <ext:Window ID="WindowInterviewApplicants" runat="server"
            Title="Thông tin ứng cử viên"
            DefaultAnchor="100%"
            Width="829"
            Height="400"
            Hidden="true"
            AutoScroll="false"
            Maximizable="False"
            Minimizable="False"
            AutoDataBind="true"
            Region="Center"
            Resizable="False"
            Modal="true"
            Layout="Fit"
            HideMode="Offsets"
            Constrain="True">
            <Content>
                <ext:GridPanel
                    ID="grInterviewApplicants"
                    Border="True"
                    runat="server"
                    AutoWidth="true"
                    AutoScroll="true"
                    Cls="gird"
                    EnableColumnMove="true">
                    <Store>
                        <%--------------StoreInterviewEthnic-----------------%>
                        <ext:Store
                            ID="StoreInterviewApplicants"
                            runat="server"
                            OnReadData="StoreInterviewApplicants_RefreshData"
                            PageSize="14">
                            <Model>
                                <ext:Model runat="server" IDProperty="Applicants_ID">
                                    <Fields>
                                        <ext:ModelField Name="Applicants_No" Type="String" />
                                        <ext:ModelField Name="Applicants_Name" Type="String" />
                                    </Fields>
                                </ext:Model>
                            </Model>
                        </ext:Store>
                    </Store>
                    <ColumnModel runat="server">
                        <Columns>
                             <ext:RowNumbererColumn runat="server" Width="30" Align="Center" />
                            <ext:Column runat="server" Text="Mã ứng viên" Width="100" DataIndex="Applicants_No" Align="Center"></ext:Column>
                            <ext:Column runat="server" Text="Tên ứng viên" Width="150" DataIndex="Applicants_Name" Flex="1"></ext:Column>
                        </Columns>
                    </ColumnModel>
                    <SelectionModel>
                        <ext:CellSelectionModel runat="server">
                            <DirectEvents>
                                <Select OnEvent="CellInterviewApplicants_Click">
                                    <EventMask ShowMask="true" Msg="Đang tải..." />
                                </Select>
                            </DirectEvents>
                        </ext:CellSelectionModel>
                    </SelectionModel>
                    <DockedItems>
                        <ext:Toolbar runat="server" Dock="Bottom" AnchorHorizontal="100%">
                            <Items>
                                <ext:TriggerField ID="txtSearchInterviewApplicants" runat="server" Width="200" EnableKeyEvents="true" MarginSpec="0 8 0 0">
                                    <Triggers>
                                        <ext:FieldTrigger Icon="Search" />
                                    </Triggers>
                                    <DirectEvents>
                                        <TriggerClick OnEvent="InterviewApplicants_Event"></TriggerClick>
                                        <KeyPress OnEvent="InterviewApplicants_Event"></KeyPress>
                                        <KeyUp OnEvent="InterviewApplicants_Event"></KeyUp>
                                    </DirectEvents>
                                </ext:TriggerField>
                                <ext:PagingToolbar runat="server" StoreID="StoreInterviewApplicants" BeforePageText="Trang" AfterPageText="của {0}" LastText="Cuối" NextText="Kế tiếp" PrevText="Trở lại" FirstText="Đầu" RefreshText="Làm tươi" DisplayInfo="true" DisplayMsg="Trang {0} - {1} của {2}" />
                            </Items>
                        </ext:Toolbar>
                    </DockedItems>
                </ext:GridPanel>
            </Content>
        </ext:Window>
        <%--------------Answer-----------------%>
        <ext:Window ID="WindowAnswer" runat="server"
            Title="Trả lời câu hỏi"
            DefaultAnchor="100%"
            Width="866"
            Height="521"
            Hidden="true"
            AutoDataBind="True"
            Region="Center"
            Resizable="True"
            Modal="true"
            HideMode="Offsets"
            Border="false"
            Padding="5"
            DefaultButton="btnSavePopUp">
            <Items>
                <ext:Toolbar runat="server">
                    <Items>
                        <ext:Button runat="server" Text="Trả lời" Icon="Accept" ID="btnAnswer">
                            <DirectEvents>
                                <Click OnEvent="btnAnswer_Click" Before="return #{FormPanelAnswer}.isValid();">
                                    <EventMask ShowMask="true" Msg="Đang tải..." />
                                </Click>
                            </DirectEvents>
                        </ext:Button>
                        <ext:ToolbarSeparator />
                        <ext:Button runat="server" Text="Bỏ qua" Icon="Decline" ID="btnAnswerCancel">
                            <DirectEvents>
                                <Click OnEvent="btnAnswerCancel_Click">
                                    <EventMask ShowMask="true" Msg="Đang tải..." />
                                </Click>
                            </DirectEvents>
                        </ext:Button>
                        <ext:TextField ID="txtID_Detail" runat="server" FieldLabel="ID" LabelAlign="Right" Hidden="true" />
                    </Items>
                </ext:Toolbar>
                <ext:FormPanel ID="FormPanelAnswer" runat="server"
                    AutoHeight="true"
                    BodyPadding="10"
                    Frame="True"
                    DefaultAnchor="100%">
                    <Items>
                        <ext:HtmlEditor runat="server" ID="txtQuestion" AnchorHorizontal="100%" Height="200" ReadOnly="True"/>
                        <ext:HtmlEditor ID="txtAnswer" runat="server" AllowBlank="False" AnchorHorizontal="100%" Height="200" MarginSpec="8 3 5 0"/>
                    </Items>
                </ext:FormPanel>
            </Items>
        </ext:Window>
    </Content>
</ext:Panel>